package com.baoy.cloud.xxx.sso.config.properties;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@ToString
@Component
@ConfigurationProperties(prefix = "shiro")
public class ShiroProperties {

    private String hashAlgorithm = "sha-1";
    private int hashIterations = 1;
    private int saltSize = 8;
    private Cookie cookie = new Cookie();

    @Data
    @ToString
    @NoArgsConstructor
    public static class Cookie {
        private String cookieName = "xxo-cookie";
        private boolean httpOnly = true;
        private int maxAge = -1;
        private String path = "/";
    }
}
